package com.snicesoft.jfinal.vue;

import com.jfinal.core.Controller;

import java.util.Arrays;

public class IndexController extends Controller {

    public void index() {
        setAttr("msg", "Welcome Index.");
        setAttr("list", Arrays.asList("1", "2", "3"));
        render("index.html");
    }

    public void fuck() {
        setAttr("msg", "Welcome Fuck.");
        setAttr("list", Arrays.asList("1", "2", "3"));
        render("fuck.html");
    }

    public void about() {
        setAttr("msg", "Welcome About.");
        setAttr("list", Arrays.asList("1", "2", "3"));
        render("about.html");
    }
}
